﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 器材新增专业 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BatchNo",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ContractNo",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DeptCode",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DeptName",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Erpcode",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "MaterialKeyId",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Mjahr",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ProOrderNo",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "RefInVoucherId",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "Zeile",
                table: "TReceivingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ExpirationMonth",
                table: "TMaterials");

            migrationBuilder.DropColumn(
                name: "FullTypeIds",
                table: "TMaterials");

            migrationBuilder.DropColumn(
                name: "FullTypeNames",
                table: "TMaterials");

            migrationBuilder.DropColumn(
                name: "Img",
                table: "TMaterials");

            migrationBuilder.AddColumn<int>(
                name: "MaterialId",
                table: "TMaterialCategories",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MaterialName",
                table: "TMaterialCategories",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MaterialId",
                table: "TMaterialCategories");

            migrationBuilder.DropColumn(
                name: "MaterialName",
                table: "TMaterialCategories");

            migrationBuilder.AddColumn<string>(
                name: "BatchNo",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ContractNo",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeptCode",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeptName",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Erpcode",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "MaterialKeyId",
                table: "TReceivingOrderDetails",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Mjahr",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProOrderNo",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "RefInVoucherId",
                table: "TReceivingOrderDetails",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Zeile",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "ExpirationMonth",
                table: "TMaterials",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FullTypeIds",
                table: "TMaterials",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "FullTypeNames",
                table: "TMaterials",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "Img",
                table: "TMaterials",
                type: "nvarchar(max)",
                nullable: true);
        }
    }
}
